package cn.wolfcode.crm.query;

//接受页面上用户传递过来的数据
//封装通用的参数
public class QueryObject {


    private Integer currentPage = 1;
    private Integer pageSize = 5;

    public int getStart(){
        return (currentPage - 1) * pageSize;
    }


    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
